Skip to content

Add back *.tsx file detection #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 15, 2017
Merged

Add back *.tsx file detection #112

merged 2 commits into from
Mar 15, 2017

Conversation

leafgarland
Copy link
Owner

In addition to the work in #111 this puts back the ftdetect for *.tsx but uses setfiletype to avoid overwriting the filetype set by any other plugins.

kballenegger and others added 2 commits March 14, 2017 15:20
There are other plugins (like ianks/vim-tsx) that set their own filetype for
*.tsx files and we don't want to override them. Using `setfiletype` does that
by only setting the filetype if it has not already been set.

For *.ts files we continue to use `set filetype` as that will overwrite the
default for *.ts files.

fix #110
close #111
@leafgarland leafgarland merged commit 4dc79bd into master Mar 15, 2017
@leafgarland leafgarland deleted the kballenegger-master branch March 15, 2017 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants